package com.sicc.prototype.service;

import java.util.List;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sicc.prototype.dao.ProtoTypeDao;
import com.sicc.prototype.dto.ProtoTypeDto;

@Service("protoTypeService")
@Transactional(rollbackFor = Exception.class)
public class ProtoTypeServiceImpl implements ProtoTypeService {
	
	@Resource(name = "protoTypeDao")
	private ProtoTypeDao protoTypeDao;
	
	@Override
	public ProtoTypeDto selectOne(ProtoTypeDto protoTypeDto) {
		// TODO Auto-generated method stub
		return protoTypeDao.selectOne(protoTypeDto);
	}
	
	@Override
	public List<ProtoTypeDto> selectList(){
		// TODO Auto-generated method stub
		return protoTypeDao.selectList();
	}
}
